﻿using System;
using System.Globalization;
using System.Windows.Data;

namespace LFSRecord2.View.Converters
{
    public class AudioDataViewHeightConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            return ((bool)value) ? 18 : 36;
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            return ((int)value == 18) ? true : false;
        }
    }
}
